package com.boyicloud.exchangeserver.config

import com.boyicloud.exchangeserver.netty.handler.InitializeHandler
import com.boyicloud.exchangeserver.netty.listener.NettyServerListener
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

@Configuration
class NettyChannelConfig {

    @Bean
    fun softwareInitializeHandler(): InitializeHandler {
        return InitializeHandler(NettyServerListener.ServerType.SOFTWARE)
    }

    @Bean
    fun equipmentInitializeHandler(): InitializeHandler {
        return InitializeHandler(NettyServerListener.ServerType.EQUIPMENT)
    }
}